my_str = input("请输入字符串")
count = 0
for i in my_str:
    if i == 'a':
        count += 1
print(f"a的次数有{count}次")
